<%@ page language="java"  pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  
    <title>显示所有权限信息</title>
    <link  rel="stylesheet" type="text/css" href="../table.css"/>
   <script type="text/javascript" language="javascript" src="../table.js" >
   </script>

  </head>
  
  <body>
   
   <h5 align="center">权限信息</h5>
   <h5 align="center"><a href="right?action=preAdd">添加</a></h5>

       <table border="0" class="datagrid2"   width="30%" align="center">
       <c:forEach items="${sessionScope.allRight}"   var="list" varStatus="listStatus">

       <tr>
               <c:set var="rightLists"  value="${sessionScope.allRight[listStatus.index]}" />
               <c:set var="rightColumnNames" value="${rightLists[0]}" />
               <c:forEach items="${rightColumnNames}"   var="list1" varStatus="listStatus1">
                   <td>
                     ${list1}
                   </td>
               </c:forEach>
       </tr>
           <tr>
               <td align="center">
                   <c:set var="rights" value="${rightLists[1]}" />
                   <table class="datagrid2"  width="80%">
                       <c:forEach items="${rights}"   var="list2" varStatus="listStatus2">
                           <c:set var="rightID" value="rightID"/>
                           <tr>
                               <td width="30%"><c:out value="${listStatus2.index+1}"/>、</td>
                               <td width="40%">  <c:out  value="${list2.rightName}"/> </td>
                               <td width="30%" align="center">

                                   <a href="rightManagerControl!preupdateRight.action?id=<s:property value='#rightID'/>">修改</a>
                                   &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                   <a href="/stuOA0.1/rightManagerControl!deleteRight.action?id=<s:property value='#rightID'/> "   onclick="return confirm('你确定要删除吗?')">删除</a>

                               </td>
                           </tr>
                       </c:forEach>
                   </table>
               </td>
           </tr>




       </c:forEach>
     
  
  
   </table> 
   
   
   
   
   
   
  </body>
</html>
